#pragma once

#include <QtCore/QThread>
#include <QtCore/QObject>

#include "utils.h"
#include "CNetworkManager.h"

/*----------------------------------------------------------------------------*/

class NetworkRunner
	:	public QThread
{
	Q_OBJECT

/*----------------------------------------------------------------------------*/

public:

/*----------------------------------------------------------------------------*/

	NetworkRunner(
			CNetworkManager& _networkManager
		,	ImageV& _images
		,	double _speed
		,	double _threshold		
	);	

	~NetworkRunner();

	void run();

/*----------------------------------------------------------------------------*/

private:

/*----------------------------------------------------------------------------*/

	CNetworkManager& m_networkManager;
	ImageV& m_images;
	double m_speed;
	double m_threshold;

/*----------------------------------------------------------------------------*/

};

/*----------------------------------------------------------------------------*/
